// index.js
// 获取应用实例
const app = getApp()

Page({
    data: {
        activity_one: {
            "left": {
                "id": 13,
                "pic": "/images/demo/bf614202104211036578670.jpg",
                "title": "零元课程免费领",
                "info": "机会不能错过",
                "link": "",
            },
            "right": [
                {
                    "id": 14,
                    "pic": "/images/demo/3f36b202104211036429955.jpg",
                    "title": "雅思托福线上培训",
                    "info": "出国深造必备课程",
                    "link": "",
                }, {
                    "id": 15,
                    "pic": "/images/demo/d73c2202104211036264679.jpg",
                    "title": "考研升学正当时",
                    "info": "考研强助力",
                    "link": "",
                }
            ]
        },
        lunbo_one: [
            {
                "id": 1,
                "img": "/images/demo/ce99d202002201232432554.jpg",
                "link": "",
                "title": ""
            },
            {
                "id": 3,
                "img": "/images/demo/d41c7202002201232431520.jpg",
                "link": "",
                "title": ""
            },
            {
                "id": 7,
                "img": "/images/demo/11.png",
                "link": "",
                "title": ""
            }
        ],
        nav_one: [
            {
                "title": "测试",
                "icon": "/images/demo/nav_one1.png",
                "link": "",
                "id": 1
            }, {
                "title": "测试2",
                "icon": "/images/demo/nav_one2.png",
                "link": "",
                "id": 2
            }, {
                "title": "测试3",
                "icon": "/images/demo/nav_one3.png",
                "link": "",
                "id": 3
            }, {
                "title": "测试4",
                "icon": "/images/demo/nav_one4.png",
                "link": "",
                "id": 4
            }, {
                "title": "测试5",
                "icon": "/images/demo/nav_one5.png",
                "link": "",
                "id": 5
            }, {
                "title": "测试6",
                "icon": "/images/demo/nav_one6.png",
                "link": "",
                "id": 6
            }],
        new_detail_one: {
            "title": "定制开发一套系统需要注意些什么",
            "author": "管理员",
            "source": null,
            "tag": [
                "费用",
                "认知"
            ],
            "image": "/images/demo/xiaocao_demo1.png",
            "description": null,
            "content": "这些词在各种疾病的描述中，在各种文献的报道中均会提到，也是一定会进行分析的内容",
            "time": null
        },
        new_one: [
            {
                "id": 5,
                "title": "定制开发一套系统需要注意些什么",
                "redirect_url": null,
                "label": [
                    "费用",
                    "认知"
                ],
                "image": "/images/demo/xiaocao_demo1.png",
                "view_count": 0
            },
            {
                "id": 3,
                "title": "不忘初心，逐梦前行 | 2021战略年会成功举办",
                "redirect_url": null,
                "label": [
                    "标杆",
                    "2022"
                ],
                "image": "/images/demo/xiaocao_demo1.png",
                "view_count": 0
            },
            {
                "id": 1,
                "title": "热烈庆祝小程序上线啦",
                "redirect_url": null,
                "label": [
                    "前沿",
                    "科技"
                ],
                "image": "/images/demo/xiaocao_demo1.png",
                "view_count": 0
            }
        ],
        new_two: [
            {
                "id": 3,
                "title": "不忘初心，逐梦前行 | 2021战略年会成功举办",
                "tag": "标杆,2022",
                "image": "/images/demo/xiaocao_demo1.png",
                "author": "管理员"
            },
            {
                "id": 1,
                "title": "热烈庆祝小程序上线啦",
                "tag": "前沿,科技",
                "image": "/images/demo/xiaocao_demo1.png",
                "author": "管理员"
            },
            {
                "id": 5,
                "title": "定制开发一套系统需要注意些什么",
                "tag": "费用,认知",
                "image": "/images/demo/xiaocao_demo1.png",
                "author": "管理员"
            }
        ],
        new_detail_loadSuccess: true,
        gonggao_one: [
            {
                "id": 1,
                "info": "小程序正式上线"
            },
            {
                "id": 3,
                "info": "世界500强"
            }
        ],
        list_one: [
            {
                "id": 3,
                "chapter_name": " 14.《醒来----北岛和朋友们的诗歌课》导读：诗歌让我们",
                "chapter_type": 2,
                "ctime": "2022-01-24 10:27:56",
                "time": "2022-01-24",
                "typeName": "视频"
            },
            {
                "id": 1,
                "chapter_name": " 15.《醒来----北岛和朋友们的诗歌课》导读：诗歌让我们",
                "chapter_type": 1,
                "ctime": "2022-01-24 10:27:41",
                "time": "2022-01-24",
                "typeName": "音频"
            }
        ],
        product_list_a: [
            {
                "id": 1,
                "title": "WISE2021新经济之王峰会-硬核时代",
                "address": "上海浦东",
                "dayofweek": "周一",
                "pricearea": "￥0起",
                "logo": "/images/demo/xiaocao_demo2.png",
            },
            {
                "id": 2,
                "title": "洞见2022 第五届中国企业服务年会-高增长的下一步",
                "address": "北京海淀",
                "pricearea": "￥0起",
                "dayofweek": "周二",
                "logo": "/images/demo/xiaocao_demo2.png",
            },
            {
                "id": 3,
                "title": "Slush Asia",
                "address": "上海浦东",
                "logo": "/images/demo/xiaocao_demo3.png",
                "pricearea": "￥360起",
                "dayofweek": "周五",
            },
        ],
        product_list_b: {
            "label_name":"艺术画作",
            "list":[
                {"img":"/images/product_list_b_img.png","title":" 以文学与时代的名义发声——与15部诺奖作品美妙相遇","desc":"一篇文章的描述","price":"119","hx_price":"999"},
                {"img":"/images/product_list_b_img.png","title":" 以文学与时代的名义发声——与15部诺奖作品美妙相遇","desc":"一篇文章的描述","price":"119","hx_price":"999"},
                {"img":"/images/product_list_b_img.png","title":" 以文学与时代的名义发声——与15部诺奖作品美妙相遇","desc":"一篇文章的描述","price":"119","hx_price":"999"}
            ]
        },
        product_list_c: [
            {
                "list": [
                    {
                        "id": 20,
                        "title": "感觉的逻辑——第五届深圳国际摄影大展南山区平行展",
                        "banner": "/images/demo/xiaocao_demo4.jpg",
                        "addrstr": "北京 朝阳",
                        "time": "01-24"
                    },
                    {
                        "id": 19,
                        "title": "WebAssembly Open Day",
                        "banner": "/images/demo/xiaocao_demo5.jpg",
                        "addrstr": "北京 朝阳",
                        "time": "01-24"
                    },
                    {
                        "id": 18,
                        "title": "【了不起的开发者】使用 Dapr 和 .NET 6 构建微服务",
                        "banner": "/images/demo/xiaocao_demo6.jpg",
                        "addrstr": "北京 朝阳",
                        "time": "01-24"
                    },
                    {
                        "id": 18,
                        "title": "【了不起的开发者】使用 Dapr 和 .NET 6 构建微服务",
                        "banner": "/images/demo/xiaocao_demo6.jpg",
                        "addrstr": "北京 朝阳",
                        "time": "01-24"
                    },
                    {
                        "id": 18,
                        "title": "【了不起的开发者】使用 Dapr 和 .NET 6 构建微服务",
                        "banner": "/images/demo/xiaocao_demo6.jpg",
                        "addrstr": "北京 朝阳",
                        "time": "01-24"
                    }
                ],
                "channelName": "金融业数字化转型实践"
            }
        ],
        tab_one:[
            {"name":"详情","id":1},
            {"name":"目录","id":2},
            {"name":"相关推荐","id":3},
        ],
        tab_one_activeTab:1,
        zhuanlan_one:{
            "list":[
                {
                    "id":3,
                    "image":"/images/demo/xiaocao_demo1.png",
                    "price":0,
                    "hx_price":0,
                    "type":"2",
                    "title":"小程序如何快速了解",
                    "label":[
                        "课程"
                    ],
                    "type_name":"课程",
                    "pay_type":0
                },
                {
                    "id":1,
                    "image":"/images/demo/xiaocao_demo1.png",
                    "price":1999,
                    "hx_price":2999,
                    "type":"1",
                    "title":"托福考前冲刺班名师讲解十天完成自我突破",
                    "label":[
                        "专栏",
                        "英文"
                    ],
                    "type_name":"专栏",
                    "pay_type":1
                }
            ],
            "channelName":"课程推荐"
        }
    },
    // 事件处理函数
    bindViewTap() {
        wx.navigateTo({
            url: '../logs/logs'
        })
    },
    onLoad() {

    },
    goActivityDetail: function (e) {
        console.log("product_list_c");
    },
    tabOneClick:function(e){
        console.log("tab_one")
        console.log(e)
    }
})
